#ifndef PVSYSTEM_H
#define PVSYSTEM_H

#include "component.h"
#include <QVector>

class PVSystem : public Component {
    Q_OBJECT
public:
    PVSystem(const QString& name, QObject* parent = nullptr);

    void update(int timeStep, double dt) override;
    void modifyParameters() override;

    // 加载预测数据
    void loadForecast(const QVector<double>& forecast);

private:
    QVector<double> m_forecast;
};

#endif // PVSYSTEM_H
